<template>
  <div class="_3hddbH_G4SAdLwXVCERQY7">
    <div class="ZkMDU4OFJElCj5-UMc-Ae">
      <span>文章标签</span>
    </div>
    <ul v-if="articleTag">
      <li
        v-for="(item, index) in articleTag"
        :key="index"
        :class="$route.path === '/tag/' + item.label ? 'active' : ''"
      >
        <router-link :to="'/tag/' + item.label"
          >{{ item.label }}{{ [item.articleCount] }}</router-link
        >
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ["articleTag"],
  mounted() {},
};
</script>

<style scoped lang="scss">
._3hddbH_G4SAdLwXVCERQY7 {
  border-radius: var(--border-radius);
  margin-bottom: 1.3rem;
  background-color: var(--bg-second);
  box-shadow: var(--box-shadow);

  line-height: 1.29;
}
._3hddbH_G4SAdLwXVCERQY7 .ZkMDU4OFJElCj5-UMc-Ae {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--main-text-color);
  font-weight: 700;
}
._3hddbH_G4SAdLwXVCERQY7 ul {
  padding: 1rem;
}
._3hddbH_G4SAdLwXVCERQY7 li {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin: 0 7px 7px 0;
  color: var(--second-text-color);
  line-height: 1.5em;
  transition: all 0.2s ease-in-out;
  font-size: 14px;
  cursor: pointer;
}
li a {
  color: var(--second-text-color);
}
._3hddbH_G4SAdLwXVCERQY7 li:hover {
  border: 1px solid #ff0064;
  a {
    color: #ff0064;
  }
}
._3hddbH_G4SAdLwXVCERQY7 .active {
  background: #ff0064;
  a {
    color: #fff;
  }
}
._3hddbH_G4SAdLwXVCERQY7 li.active:hover {
  a {
    color: #fff;
  }
}
</style>
